<div class="zs-body" data-ng-init="formInit('gzccgl', {
        keyField:'id',
        randomFields:['id'],
        orderObject:{kssj:1}
    }) && loadData('gzccgl');setConHei();">
    <div class="zs-map-tool">
        <div class="location">
            <a href="javascript:;">首页</a>
            <i class="right-arr"></i>
            <a href="javascript:;">人事管理</a>
            <i class="right-arr"></i>
            <a href="javascript:;">出差管理</a>
        </div>
        <div class="option">
        	<!--科员非办公室科员-->
        	<input type="button" class="zs-btn orange" value="出差申请" ng-show="mi.sa || mi.rsgl_kqgl_ccgl_ky"
                ng-click="startNewBpm('ccgl.html','ccgl','gzccgl');"/>
            <!--科长、办公室科员出差--> 
            <input type="button" class="zs-btn orange" value="出差申请" ng-show="mi.sa || mi.rsgl_kqgl_ccgl_kz"
                ng-click="startNewBpm('ccgl.html','ccgl_kjgb','gzccgl');"/>
             <!--办公室主任--> 
            <input type="button" class="zs-btn orange" value="出差申请" ng-show="mi.sa || mi.rsgl_kqgl_ccgl_bgszr"
                ng-click="startNewBpm('ccgl.html','ccgl_zrjbgb','gzccgl');"/>
             <!--副局出差-->     
            <input type="button" class="zs-btn orange" value="出差申请" ng-show="mi.sa || mi.rsgl_kqgl_ccgl_fj"
                ng-click="startNewBpm('ccgl.html','ccgl_jjgb','gzccgl');"/>
                
                 <!--局出差-->     
            <input type="button" class="zs-btn orange" value="出差申请" ng-show="mi.sa || mi.rsgl_kqgl_ccgl_jz"
                ng-click="startNewBpm('ccgl.html','ccgl_jz','gzccgl');"/>
        </div>
    </div>
    <div class="zs-content" style="position:unset">
        <div class="zs-nice-tab idTabs">
			<div class="tool item" style="margin-left:6px;">

            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="申请人" ng-model="gzccgl.queryObject['ccrxm:like']"/>
                </span>
                
                <span class="search-warpper" style="width: 65px;">出差时间
                 </span>
            	<span class="search-warpper">
                   <ag-Datebox
                		class="zs-input" style="width:175px;height: 28px"
                		ng-model="gzccgl.queryObject['kssj:>=']" >
			   		</ag-Datebox>
               </span>-
                <span class="search-warpper">
                   <ag-Datebox
                		class="zs-input" style="width:175px;height: 28px"
                		ng-model="gzccgl.queryObject['jssj:<=']" >
			   		</ag-Datebox>
                </span>
            	
            </div>
            <div class="operation item" style="margin-top:7px;">
            	<input type="button" class="zs-btn orange" value="查询" 
            		ng-click="loadData('gzccgl')"/>
            </div>
            <div class="switch">
                
            </div>
        </div>
        <div class="date-container">
            <div id="zpgwd">
                <div class="zs-data-table">
                    <div class="container">
                        <table>
                            <thead>
                                <tr>
                                    <th>
                                        <input id="allCheckbox" type="checkbox"
                                            ng-click="selectAll('gzccgl','allCheckbox');" />
                                    </th>
								<!--	<th>ID</th>-->
									<!--<th>所在单位</th>-->
								<!--	<th>单位ID</th>-->
									<th>申请人</th>
									<!--<th>出差人ID</th>-->
									<!--<th>开始日期</th>-->
									<th>开始时间</th>
									<th>结束时间</th>
									<!--<th>结束日期</th>
									<th>出差类型</th>
									<th>出差天数</th>-->
									<th>出差事由</th>
								<!--	<th>关联项目ID</th>
									<th>关联项目名称</th>
									<th>出差报告</th>
									<th>申请日期</th>
									<!--<th>申请人ID</th>-->
									<th>申请日期</th>
									<th>签批状态</th>
									<!--<th>申请人名称</th>-->
									<!--<th>核对人ID</th>-->
									<!--<th>核对人名称</th>
									<th>核对结果</th>
									<th>核对时间</th>
									<th>审核人</th>
									<th>审核意见</th>
									<th>审核结果</th>-->
								<!--	<th>审核人ID</th>-->
									<!--<th>审核时间</th>
									<th>撤销时间</th>
									<th>撤销人</th>
									<th>撤销原因</th>-->
									<!--<th>状态</th>-->
									<!--<th>撤销人ID</th>-->
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="r in gzccgl.datas">
                                    <td>
                                        <input type="checkbox"
                                            ng-click="selectRow('gzccgl',r);"
                                            ng-model="r.selected" />
                                    </td>
									<!--  ID -->
            					<!--	<td>
                                        <a ng-click="editRow('gzccgl',r) && openWindow('edit');">
                                            <label ng-bind="r.id"></label>
                                        </a>
                                   </td>-->
									<!--  所在单位 -->
            						<!--<td>
                                         <a ng-click="toQueryWork('ccgl.html','ccgl','gzccgl','gzccgl',r.id);">
                                            <label ng-bind="r.szdw"></label>
                                        </a>
                                   </td>-->
									<!--  单位ID -->
            					<!--	<td>
                                        <a ng-click="editRow('gzccgl',r) && openWindow('edit');">
                                            <label ng-bind="r.dwid"></label>
                                        </a>
                                   </td>-->
									<!--  出差人姓名 -->
            						<td>
                                         <a ng-click="toQueryWork('ccgl.html',r.bpmkey,'gzccgl','gzccgl',r.id);">
                                            <label ng-bind="r.ccrxm"></label>
                                        </a>
                                   </td>
									<!--  出差人ID -->
            						<!--<td>
                                        <a ng-click="editRow('gzccgl',r) && openWindow('edit');">
                                            <label ng-bind="r.ccrid"></label>
                                        </a>
                                   </td>-->
									<!--  开始日期 -->
								  <!-- <td>
                                        <a ng-click="editRow('gzccgl',r) && openWindow('edit');">
                                            <label ng-bind="r.ksrq | asDate | date:'yyyy-MM-dd'"></label>
                                        </a>
                                   </td>-->
									<!--  开始时间 -->
								   <td>
                                         <a ng-click="toQueryWork('ccgl.html',r.bpmkey,'gzccgl','gzccgl',r.id);">
                                            <label ng-bind="r.kssj | asDate | date:'yyyy-MM-dd'"></label>
                                        </a>
                                   </td>
									<!--  结束时间 -->
								   <td>
                                         <a ng-click="toQueryWork('ccgl.html',r.bpmkey,'gzccgl','gzccgl',r.id);">
                                            <label ng-bind="r.jssj | asDate | date:'yyyy-MM-dd'"></label>
                                        </a>
                                   </td>
									<!--  结束日期 -->
								   <!--<td>
                                        <a ng-click="editRow('gzccgl',r) && openWindow('edit');">
                                            <label ng-bind="r.jsrq | asDate | date:'yyyy-MM-dd'"></label>
                                        </a>
                                   </td>-->
									<!--  出差类型 -->
            						<!--<td>
                                        <a ng-click="editRow('gzccgl',r) && openWindow('edit');">
                                            <label ng-bind="r.cclx"></label>
                                        </a>
                                   </td>-->
									<!--  出差天数 -->
            						<!--<td>
                                        <a ng-click="editRow('gzccgl',r) && openWindow('edit');">
                                            <label ng-bind="r.ccts"></label>
                                        </a>
                                   </td>-->
									<!--  外出事由 -->
            						<td>
                                         <a ng-click="toQueryWork('ccgl.html',r.bpmkey,'gzccgl','gzccgl',r.id);">
                                            <label ng-bind="r.wcsy"></label>
                                        </a>
                                   </td>
									<!--  关联项目ID -->
            						<!--<td>
                                        <a ng-click="editRow('gzccgl',r) && openWindow('edit');">
                                            <label ng-bind="r.glxmid"></label>
                                        </a>
                                   </td>-->
									<!--  关联项目名称 -->
            					<!--	<td>
                                        <a ng-click="editRow('gzccgl',r) && openWindow('edit');">
                                            <label ng-bind="r.glxmmc"></label>
                                        </a>
                                   </td>-->
									<!--  出差报告 -->
            						<!--<td>
                                        <a ng-click="editRow('gzccgl',r) && openWindow('edit');">
                                            <label ng-bind="r.ccbg"></label>
                                        </a>
                                   </td>-->
									<!--  申请日期 -->
								   <td>
                                         <a ng-click="toQueryWork('ccgl.html',r.bpmkey,'gzccgl','gzccgl',r.id);">
                                            <label ng-bind="r.sqrq | asDate | date:'yyyy-MM-dd'"></label>
                                        </a>
                                   </td>
                                   
                                    <td>
                                         <a ng-click="toQueryWork('ccgl.html',r.bpmkey,'gzccgl','gzccgl',r.id);">
                                            <label ng-bind="r.spztName"></label>
                                        </a>
                                   </td>
									<!--  申请人ID -->
            						<!--<td>
                                        <a ng-click="editRow('gzccgl',r) && openWindow('edit');">
                                            <label ng-bind="r.sqrid"></label>
                                        </a>
                                   </td>-->
									<!--  申请人名称 -->
            						<!--<td>
                                         <a ng-click="toQueryWork('ccgl.html','ccgl','gzccgl','gzccgl',r.id);">
                                            <label ng-bind="r.sqrmc"></label>
                                        </a>
                                   </td>-->
									<!--  核对人ID -->
            						<!--<td>
                                        <a ng-click="editRow('gzccgl',r) && openWindow('edit');">
                                            <label ng-bind="r.hdrid"></label>
                                        </a>
                                   </td>-->
									<!--  核对人名称 -->
            						<!--<td>
                                        <a ng-click="editRow('gzccgl',r) && openWindow('edit');">
                                            <label ng-bind="r.hdrmc"></label>
                                        </a>
                                   </td>-->
									<!--  核对结果 -->
            					<!--	<td>
                                        <a ng-click="editRow('gzccgl',r) && openWindow('edit');">
                                            <label ng-bind="r.hdjg"></label>
                                        </a>
                                   </td>-->
									<!--  核对时间 -->
								  <!-- <td>
                                        <a ng-click="editRow('gzccgl',r) && openWindow('edit');">
                                            <label ng-bind="r.hdsj | asDate | date:'yyyy-MM-dd'"></label>
                                        </a>
                                   </td>-->
									<!--  审核人 -->
            					<!--	<td>
                                        <a ng-click="editRow('gzccgl',r) && openWindow('edit');">
                                            <label ng-bind="r.shr"></label>
                                        </a>
                                   </td>-->
									<!--  审核意见 -->
            					<!--	<td>
                                        <a ng-click="editRow('gzccgl',r) && openWindow('edit');">
                                            <label ng-bind="r.shyj"></label>
                                        </a>
                                   </td>-->
									<!--  审核结果 -->
            						<!--<td>
                                        <a ng-click="editRow('gzccgl',r) && openWindow('edit');">
                                            <label ng-bind="r.shjg"></label>
                                        </a>
                                   </td>-->
									<!--  审核人ID -->
            						<!--<td>
                                        <a ng-click="editRow('gzccgl',r) && openWindow('edit');">
                                            <label ng-bind="r.shrid"></label>
                                        </a>
                                   </td>-->
									<!--  审核时间 -->
								  <!-- <td>
                                        <a ng-click="editRow('gzccgl',r) && openWindow('edit');">
                                            <label ng-bind="r.shsj | asDate | date:'yyyy-MM-dd'"></label>
                                        </a>
                                   </td>-->
									<!--  撤销时间 -->
								  <!-- <td>
                                        <a ng-click="editRow('gzccgl',r) && openWindow('edit');">
                                            <label ng-bind="r.cxsj | asDate | date:'yyyy-MM-dd'"></label>
                                        </a>
                                   </td>-->
									<!--  撤销人 -->
            						<!--<td>
                                        <a ng-click="editRow('gzccgl',r) && openWindow('edit');">
                                            <label ng-bind="r.cxrmc"></label>
                                        </a>
                                   </td>-->
									<!--  撤销原因 -->
            						<!--<td>
                                        <a ng-click="editRow('gzccgl',r) && openWindow('edit');">
                                            <label ng-bind="r.cxyy"></label>
                                        </a>
                                   </td>-->
									<!--  撤销人ID -->
            						<!--<td>
                                        <a ng-click="editRow('gzccgl',r) && openWindow('edit');">
                                            <label ng-bind="r.cxrid"></label>
                                        </a>
                                   </td>-->
                                  <!-- <td></td>-->
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="zs-pagination-box">
                    <ag-Page fn='gzccgl'></ag-Page>
                </div>
            </div>
        </div>

        <div ag-Window id="edit" title="出差管理编辑" width='560px' height='420px'>
            <div class="zs-form-tab ibox">
                <form name="form" novalidate>
                    <table width="100%">
                        <tbody>
          					<!--<tr>
                                <td class="text" width="20%">ID</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzccgl.editRow.id" class="zs-input" />
                                </td>
                            </tr>-->
          					<tr>
                                <td class="text" width="20%">所在单位</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzccgl.editRow.szdw" class="zs-input" />
                                </td>
                            <!--</tr>
          					<tr>
                                <td class="text" width="20%">单位ID</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzccgl.editRow.dwid" class="zs-input" />
                                </td>
                            </tr>
          					<tr>-->
                                <td class="text" width="20%">出差人姓名</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzccgl.editRow.ccrxm" class="zs-input" />
                                </td>
                            </tr>
          					<!--<tr>
                                <td class="text" width="20%">出差人ID</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzccgl.editRow.ccrid" class="zs-input" />
                                </td>
                            </tr>-->
						   <tr>
                                <td class="text" width="20%">开始日期</td>
                                <td class="left" width="30%">
                                	<ag-Datebox id='fi_ksrq'  showcurday='true'
		                        		class="zs-input" style="width:175px;height: 28px"
		                        		ng-model="gzccgl.editRow.ksrq" >
							   		</ag-Datebox>
                                </td>
                           <!-- </tr>
						   <tr>-->
                                <td class="text" width="20%">开始时间</td>
                                <td class="left" width="30%">
                                	<ag-Datebox id='fi_kssj'  showcurday='true'
		                        		class="zs-input" style="width:175px;height: 28px"
		                        		ng-model="gzccgl.editRow.kssj" >
							   		</ag-Datebox>
                                </td>
                            </tr>
						   <tr>
                                <td class="text" width="20%">结束时间</td>
                                <td class="left" width="30%">
                                	<ag-Datebox id='fi_jssj'  showcurday='true'
		                        		class="zs-input" style="width:175px;height: 28px"
		                        		ng-model="gzccgl.editRow.jssj" >
							   		</ag-Datebox>
                                </td>
                           <!-- </tr>
						   <tr>-->
                                <td class="text" width="20%">结束日期</td>
                                <td class="left" width="30%">
                                	<ag-Datebox id='fi_jsrq'  showcurday='true'
		                        		class="zs-input" style="width:175px;height: 28px"
		                        		ng-model="gzccgl.editRow.jsrq" >
							   		</ag-Datebox>
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%">出差类型</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzccgl.editRow.cclx" class="zs-input" />
                                </td>
                            <!--</tr>
          					<tr>-->
                                <td class="text" width="20%">出差天数</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzccgl.editRow.ccts" class="zs-input" />
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%">外出事由</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzccgl.editRow.wcsy" class="zs-input" />
                                </td>
                            <!--</tr>
          					<tr>
                                <td class="text" width="20%">关联项目ID</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzccgl.editRow.glxmid" class="zs-input" />
                                </td>
                            </tr>
          					<tr>-->
                                <td class="text" width="20%">关联项目名称</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzccgl.editRow.glxmmc" class="zs-input" />
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%">出差报告</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzccgl.editRow.ccbg" class="zs-input" />
                                </td>
                           <!-- </tr>
						   <tr>-->
                                <td class="text" width="20%">申请日期</td>
                                <td class="left" width="30%">
                                	<ag-Datebox id='fi_sqrq'  showcurday='true'
		                        		class="zs-input" style="width:175px;height: 28px"
		                        		ng-model="gzccgl.editRow.sqrq" >
							   		</ag-Datebox>
                                </td>
                            </tr>
          					<!--<tr>
                                <td class="text" width="20%">申请人ID</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzccgl.editRow.sqrid" class="zs-input" />
                                </td>
                            </tr>-->
          					<tr>
                                <td class="text" width="20%">申请人名称</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzccgl.editRow.sqrmc" class="zs-input" />
                                </td>
                           <!-- </tr>
          					<tr>
                                <td class="text" width="20%">核对人ID</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzccgl.editRow.hdrid" class="zs-input" />
                                </td>
                            </tr>
          					<tr>-->
                                <td class="text" width="20%">核对人名称</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzccgl.editRow.hdrmc" class="zs-input" />
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%">核对结果</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzccgl.editRow.hdjg" class="zs-input" />
                                </td>
                           <!-- </tr>
						   <tr>-->
                                <td class="text" width="20%">核对时间</td>
                                <td class="left" width="30%">
                                	<ag-Datebox id='fi_hdsj'  showcurday='true'
		                        		class="zs-input" style="width:175px;height: 28px"
		                        		ng-model="gzccgl.editRow.hdsj" >
							   		</ag-Datebox>
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%">审核人</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzccgl.editRow.shr" class="zs-input" />
                                </td>
                            <!--</tr>
          					<tr>-->
                                <td class="text" width="20%">审核意见</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzccgl.editRow.shyj" class="zs-input" />
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%">审核结果</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzccgl.editRow.shjg" class="zs-input" />
                                </td>
                            <!--</tr>
          					<tr>
                                <td class="text" width="20%">审核人ID</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzccgl.editRow.shrid" class="zs-input" />
                                </td>
                            </tr>
						   <tr>-->
                                <td class="text" width="20%">审核时间</td>
                                <td class="left" width="30%">
                                	<ag-Datebox id='fi_shsj'  showcurday='true'
		                        		class="zs-input" style="width:175px;height: 28px"
		                        		ng-model="gzccgl.editRow.shsj" >
							   		</ag-Datebox>
                                </td>
                            </tr>
						   <tr>
                                <td class="text" width="20%">撤销时间</td>
                                <td class="left" width="30%">
                                	<ag-Datebox id='fi_cxsj'  showcurday='true'
		                        		class="zs-input" style="width:175px;height: 28px"
		                        		ng-model="gzccgl.editRow.cxsj" >
							   		</ag-Datebox>
                                </td>
                            <!--</tr>
          					<tr>-->
                                <td class="text" width="20%">撤销人</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzccgl.editRow.cxrmc" class="zs-input" />
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%">撤销原因</td>
                                <td class="left" width="30%" colspan="3">
                                	<input type="text" ng-model="gzccgl.editRow.cxyy" class="zs-input" />
                                </td>
                            </tr>
          					<!--<tr>
                                <td class="text" width="20%">撤销人ID</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzccgl.editRow.cxrid" class="zs-input" />
                                </td>
                            </tr>-->
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="4">
                                    <input type="button" name="ok" value="保存" class="zs-btn c-red"
                                        ng-click="formValidate(form) && save('gzccgl', gzccgl.editRow, saveCloseWindow)"/>
                                    <input type="button" name="ok" value="取消" class="zs-btn c-green" 
                                        ng-click="closeWindow('edit')" />
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                </form>
            </div>
        </div>
    </div>
</div>